package com.finer.entity.stock;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 仓库表
 * (FinerWarehourse)实体类
 *
 * @author makejava
 * @since 2024-10-21 10:20:41
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class FinerWarehouse implements Serializable {
    private static final long serialVersionUID = -44785649799121967L;
    /**
     * 仓库主键id.
     */
    private Integer id;

    //父级仓库id
    private Integer parentId;
    /**
     * 仓库编号.
     */
    private String houseCode;
    /**
     * 仓库名称.
     */
    private String houseName;
    /**
     * 创建人.
     */
    private Integer createBy;

    //创建人名称
    private String createName;
    /**
     * 创建时间.
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createDate;
    /**
     * 修改人.
     */
    private Integer modifyBy;

    //修改人名称
    private String modifyName;
    /**
     * 修改时间.
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date modifyDate;
    /**
     * 0:未删除  1:已删除.
     */
    private Integer isDel;

    //字仓库
    private List<FinerWarehouse> children;
}

